package com.mysteel.product.feign;

import com.mysteel.product.feign.fallback.SecKillFeignServiceFallback;
import com.mysteel.product.vo.web.SecKillSkuRedisVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * ProjectName: mail
 * ClassName: SecKillFeignService
 * Description:
 * date: 2021/04/12/012 10:38
 *
 * @author xiaochao
 */
@FeignClient(value = "seckill", fallback = SecKillFeignServiceFallback.class)
public interface SecKillFeignService {
    @ResponseBody
    @GetMapping("/sku/secKill/{skuId}")
    SecKillSkuRedisVo getSkuSecKillInfo(@PathVariable("skuId") Long skuId);
}
